﻿<%@ Control Language="C#" AutoEventWireup="true" Inherits="HL.Lib.MVC.ViewControl" %>
<%var model = ViewPage.ViewBag.M as MSearchModel;
  int se = model != null ? model.Area : 0;
%>
<div class="area">
    <label style="float: left; width: 60px; display: block; padding-top: 7px;">
        Khu vực</label>
    <select name="websites2" id="websites2" onchange="doFilter(this.value)" style="width: 162px;"
        tabindex="1">
        <option value="0" selected>- Chọn khu vực -</option>
        <%=Utils.ShowDDLMenuByType2("Area",1,se) %>
    </select>
    <script type="text/javascript">
        $(document).ready(function () {

            try {
                $("#websites2").msDropDown({ mainCSS: 'dd2' });
                //alert($.msDropDown.version);
                //$.msDropDown.create("body select");
                $("#ver").html($.msDropDown.version);
            } catch (e) {
                alert("Error: " + e.message);
            }
        })

    </script>
</div>
<script type="text/javascript">
    function doFilter(value) {
        if (value > 0) {
            location.href = '/Search.aspx?Area=' + value;
        }
    }
</script>
